package com.czkt.shop.controller;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.czkt.shop.pojo.Navigation;
import com.czkt.shop.service.INavigationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/navigation")
@CrossOrigin
public class NavigationController {

    @Autowired
    INavigationService navigationService;

    @RequestMapping("/list")
    public Object list(){
        return navigationService.list();
    }
}
